﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class faq : System.Web.UI.Page
{
    VLGDataContext _db = new VLGDataContext();
    protected void Page_Load(object sender, EventArgs e)
    {
        Session["currentItem"] = "faqp";
        if (!IsPostBack)
        {
            var listFAQSeller = from f in _db.FAQs
                                where f.IsActive == true&& f.Type==1
                                select f;
            rptFAQSeller.DataSource = listFAQSeller;
            rptFAQSeller.DataBind();
            var listFAQBuyer = from f in _db.FAQs
                                where f.IsActive == true && f.Type == 0
                                select f;
            rptFAQBuyer.DataSource = listFAQBuyer;
            rptFAQBuyer.DataBind();

        }
    }
}